#include <stdio.h>
#include <jni.h>
#include "site_zhouinfo_zhouinfo.h"

JNIEXPORT jstring JNICALL Java_site_zhouinfo_zhouinfo_zhouinfo(JNIEnv *env, jobject thisObj, jstring name){
    char buf[128];
    const jbyte *str;
    str = (*env)->GetStringUTFChars(env,name,NULL);
    if(str==NULL){
        return NULL;
    }
    printf("hello %s\n",str);
    (*env)->ReleaseStringUTFChars(env, name, str);
    /* 假设输入字符不超过127个 */
    scanf("%s", buf);
    return (*env)->NewStringUTF(env, buf);
}
